+Thu Aug 12 23:52:12 2004 Matthias Clasen <maclas@gmx.de>
+
+ Fix #149547, Markus Lausser:
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
+ * gtk/gtkcombobox.c (gtk_combo_box_size_request): Don't
+ crash if size_request or size_allocate are called early.
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Protect
+ against being allocated too small.
+
Thu Aug 12 21:02:57 2004 Matthias Clasen <maclas@gmx.de>
- * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog API changes.
+ * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog
+ API changes.
* gtk/gtkaboutdialog.h:
* gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook):
+Thu Aug 12 23:52:12 2004 Matthias Clasen <maclas@gmx.de>
+
+ Fix #149547, Markus Lausser:
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
+ * gtk/gtkcombobox.c (gtk_combo_box_size_request): Don't
+ crash if size_request or size_allocate are called early.
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Protect
+ against being allocated too small.
+
Thu Aug 12 21:02:57 2004 Matthias Clasen <maclas@gmx.de>
- * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog API changes.
+ * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog
+ API changes.
* gtk/gtkaboutdialog.h:
* gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook):
+Thu Aug 12 23:52:12 2004 Matthias Clasen <maclas@gmx.de>
+
+ Fix #149547, Markus Lausser:
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
+ * gtk/gtkcombobox.c (gtk_combo_box_size_request): Don't
+ crash if size_request or size_allocate are called early.
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Protect
+ against being allocated too small.
+
Thu Aug 12 21:02:57 2004 Matthias Clasen <maclas@gmx.de>
- * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog API changes.
+ * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog
+ API changes.
* gtk/gtkaboutdialog.h:
* gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook):
+Thu Aug 12 23:52:12 2004 Matthias Clasen <maclas@gmx.de>
+
+ Fix #149547, Markus Lausser:
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
+ * gtk/gtkcombobox.c (gtk_combo_box_size_request): Don't
+ crash if size_request or size_allocate are called early.
+
+ * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Protect
+ against being allocated too small.
+
Thu Aug 12 21:02:57 2004 Matthias Clasen <maclas@gmx.de>
- * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog API changes.
+ * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog
+ API changes.
* gtk/gtkaboutdialog.h:
* gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook):
GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
+ gtk_combo_box_check_appearance (combo_box);
+
/* common */
gtk_widget_size_request (GTK_BIN (widget)->child, &bin_req);
gtk_combo_box_remeasure (combo_box);
GtkRequisition req;
gboolean is_rtl = gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL;
+ gtk_combo_box_check_appearance (combo_box);
+
widget->allocation = *allocation;
gtk_widget_style_get (GTK_WIDGET (widget),
child.width = req.width;
if (!is_rtl)
child.x += width - req.width;
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (combo_box->priv->arrow, &child);
if (is_rtl)
child.x += req.width;
child.width = req.width;
if (!is_rtl)
child.x -= req.width;
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (combo_box->priv->separator, &child);
if (is_rtl)
child.width -= child.x;
}
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (GTK_BIN (widget)->child, &child);
}
else
child.y = allocation->y;
child.width = req.width;
child.height = allocation->height;
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (combo_box->priv->button, &child);
if (is_rtl)
child.x = allocation->x;
child.y = allocation->y;
child.width = allocation->width - req.width;
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (GTK_BIN (widget)->child, &child);
}
}
child.y = allocation->y;
child.width = req.width;
child.height = allocation->height;
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (combo_box->priv->button, &child);
/* frame */
if (combo_box->priv->cell_view_frame)
{
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (combo_box->priv->cell_view_frame, &child);
/* the sample */
}
}
+ child.width = MAX (1, child.width);
+ child.height = MAX (1, child.height);
gtk_widget_size_allocate (GTK_BIN (combo_box)->child, &child);
}
}